package jtk.project4.fleet.field;

import nl.coderight.jazz.form.FormLayout;
import nl.coderight.jazz.form.FormLayout.Resize;
import nl.coderight.jazz.form.control.GroupControl;
import nl.coderight.jazz.form.field.ComboField;
import nl.coderight.jazz.form.field.TextField;
import nl.coderight.jazz.form.field.button.CheckButton;

public class ViewOptionsField extends GroupControl<String>{
	private ComboField statusField;
	private CheckButton highlight;
	
	

	public ViewOptionsField(String bindID){
		setTitle("header.viewOptions");
		setBindID(bindID);
		createFields();
		createLayout();
	}
	


	private void createFields(){
		
		statusField = new ComboField("workOrderManagement","status");
		
		highlight = new CheckButton("highlight Outstanding Work Order");
		
	}
	
	private void createLayout() {
		setLayout(new FormLayout())
		.addLabel("label.status").addField(statusField,Resize.HORIZONTAL)
		
		.addField(highlight);
		
	}

}
